package com.melly.demo1;

import lombok.Getter;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class TestBeanRun implements   TestBean{

    public void query(){
        System.out.println("queryl");
    }


    public static  void main(String[] args){
        int value = binaryToInt("1000100");
        System.out.println(value);

    }


    public static  int  binaryToInt(String number){

        int i = Integer.parseInt(number,2);
        return i;
    }

}
